/* 个人中心优化样式 */

.personal-center {
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

/* 初始加载状态 */
.initial-loading {
  padding: 2rem;
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* 个人中心头部优化 */
.personal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.personal-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.profile-section {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: bold;
  margin-right: 2rem;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.profile-avatar .avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-avatar .upload-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-avatar:hover .upload-overlay {
  opacity: 1;
}

.profile-info h3 {
  margin-bottom: 0.5rem;
  color: white;
  font-size: 1.5rem;
  font-weight: 600;
}

.profile-info p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.online-status .online {
  color: #4ade80;
  animation: pulse 2s infinite;
}

.online-status .offline {
  color: #f87171;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* 指标卡片优化 */
.metric-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.metric-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.metric-card:hover::before {
  left: 100%;
}

.metric-value {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
  background: linear-gradient(45deg, #fff, #f0f0f0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-label {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.metric-trend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  font-size: 0.8rem;
}

.metric-trend .trend-up {
  color: #4ade80;
}

.metric-trend .trend-down {
  color: #f87171;
}

.notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
}

/* 导航标签优化 */
.personal-nav {
  background: white;
  border-radius: 20px;
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

/* 内容区域优化 */
.personal-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  min-height: 600px;
}

/* 卡片头部优化 */
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  color: #374151;
  margin-bottom: 1rem;
}

.header-actions {
  margin-left: auto;
}

/* 图表容器优化 */
.chart-container {
  position: relative;
  height: 350px;
  margin: 1rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 15px;
  padding: 1rem;
}

/* 加载状态优化 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  gap: 12px;
  color: #6b7280;
}

.loading .el-icon {
  font-size: 2rem;
}

/* 空状态优化 */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #6b7280;
}

.empty-state .el-icon {
  font-size: 5rem;
  margin-bottom: 1rem;
  opacity: 0.3;
  color: #9ca3af;
}

.empty-state p {
  font-size: 1.1rem;
  margin: 0;
}

/* 列表项优化 */
.activity-item, .ticket-item, .notification-item {
  display: flex;
  align-items: center;
  padding: 1.25rem;
  border-bottom: 1px solid #f1f5f9;
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.activity-item:hover, .ticket-item:hover, .notification-item:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.activity-item:last-child, .ticket-item:last-child, .notification-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.activity-icon, .ticket-icon, .notification-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1.3rem;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.activity-content, .ticket-content, .notification-content {
  flex: 1;
}

.activity-title, .ticket-title, .notification-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #374151;
  font-size: 1rem;
}

.activity-time, .ticket-time, .notification-time {
  font-size: 0.85rem;
  color: #6b7280;
}

.ticket-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.ticket-number {
  text-align: right;
  font-weight: 500;
  color: #6b7280;
}

/* 通知项特殊样式 */
.notification-item.unread {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left: 4px solid #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.2);
}

.notification-message {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* 筛选区域优化 */
.filter-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 15px;
  border: 1px solid #e2e8f0;
}

/* 设置项优化 */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.setting-item:hover {
  background: #e2e8f0;
  transform: translateX(5px);
}

.setting-label h6 {
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #374151;
}

.setting-label small {
  color: #6b7280;
}

.settings-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #374151;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
}

/* 分页优化 */
.pagination {
  margin-top: 2rem;
  justify-content: center;
}

/* 表单优化 */
.el-form-item {
  margin-bottom: 1.5rem;
}

.el-input, .el-select, .el-textarea {
  border-radius: 10px;
}

.el-button {
  border-radius: 10px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.el-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 对话框优化 */
.el-dialog {
  border-radius: 20px;
  overflow: hidden;
}

.el-dialog__header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
}

.el-dialog__title {
  color: white;
  font-weight: 600;
}

.el-dialog__body {
  padding: 2rem;
}

/* 响应式优化 */
@media (max-width: 768px) {
  .personal-center {
    padding: 10px;
  }
  
  .personal-header {
    padding: 1.5rem;
    border-radius: 15px;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-avatar {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 80px;
    height: 80px;
    font-size: 2rem;
  }
  
  .profile-info h3 {
    font-size: 1.3rem;
  }
  
  .metric-card {
    padding: 1rem;
  }
  
  .metric-value {
    font-size: 2rem;
  }
  
  .personal-content {
    padding: 1rem;
    border-radius: 15px;
  }
  
  .chart-container {
    height: 250px;
  }
  
  .activity-item, .ticket-item, .notification-item {
    padding: 1rem;
  }
  
  .activity-icon, .ticket-icon, .notification-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .personal-header {
    padding: 1rem;
  }
  
  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .metric-card {
    padding: 0.75rem;
  }
  
  .metric-value {
    font-size: 1.5rem;
  }
  
  .personal-content {
    padding: 0.75rem;
  }
  
  .chart-container {
    height: 200px;
    padding: 0.5rem;
  }
}

/* 动画优化 */
.fade-enter-active, .fade-leave-active {
  transition: opacity 0.3s ease;
}

.fade-enter-from, .fade-leave-to {
  opacity: 0;
}

.slide-enter-active, .slide-leave-active {
  transition: transform 0.3s ease;
}

.slide-enter-from {
  transform: translateX(-100%);
}

.slide-leave-to {
  transform: translateX(100%);
}

/* 滚动条优化 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* 主题切换支持 */
.dark .personal-center {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.dark .personal-content {
  background: #1e293b;
  color: #e2e8f0;
}

.dark .personal-nav {
  background: #1e293b;
  color: #e2e8f0;
}

.dark .card-header {
  color: #e2e8f0;
}

.dark .activity-title, .dark .ticket-title, .dark .notification-title {
  color: #e2e8f0;
}

.dark .activity-time, .dark .ticket-time, .dark .notification-time {
  color: #94a3b8;
}
